package com.aaa.mbs.service;

import com.aaa.common.bo.Order;
import com.aaa.mbs.service.impl.OrderFallbackServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * fileName:OrderService
 * description:
 * author: Mr.Ge
 * createTime:2020/11/20 8:52
 * version:1.0.0
 */
@FeignClient(name = "orderService",fallback = OrderFallbackServiceImpl.class)
public interface OrderService {

    /**
     * 查询所有订单
     * @param order
     * @return
     */
    @PostMapping("/order/queryAll")
    List<Order> queryOrderList(@RequestBody Order order);
}
